package com.iqiyi.pps.epg.core.service.rtmp;

import com.iqiyi.pps.epg.core.model.rtmp.RtmpServer;
import com.iqiyi.pps.epg.core.model.rtmp.RtmpServerPfv;
import com.iqiyi.pps.epg.core.model.rtmp.RtmpServerStat;

import java.util.List;

public interface RtmpService {
    RtmpServer getServerById(long id);
    RtmpServerStat getServerStatById(long id);
    boolean saveServer(RtmpServer entity);
    boolean saveServerStat(RtmpServerStat entity);
    boolean saveServerPfv(RtmpServerPfv entity);
    List<RtmpServer> getServerList();
    List<RtmpServerStat> getServerStatListByServerId(int serverId);
    List<RtmpServerStat> getServerStatList();
    List<RtmpServerPfv> getServerPfvList();

    /**
     * 是否有效的流名称
     * @param streamName
     * @return
     */
    boolean isValidStream(String streamName);

    /**
     * 流名称suggest
     * @param streamName
     * @return
     */
    List<RtmpServerStat> streamInfoSuggest(String streamName);

    public RtmpServer getByPrivateIp(String privateIp);

    RtmpServer getByPublicIp(String publicIp);
}
